/**
    File        : CSplashScreen.h
    Description : Splash Screen
    Author      : Raymond Marsh
    Created     : 08/01/2009
    Copyright 2009, 2010, 2011, 2012 Raymond Marsh

    This program is distributed under the terms of the GNU General Public License.
    To view a copy of the license see the file 'copying.txt'

    This file is part of the MyMoney Suite.

    MyMoney is free software: you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software Foundation, either
    version 3 of the License, or (at your option) any later version.

    MyMoney is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along with MyMoney.
    If not, see <http://www.gnu.org/licenses/>.
**/

#ifndef CSPLASHSCREEN_H
#define CSPLASHSCREEN_H

//(* wxWidgets includes
#include <wx/dialog.h>
#include <wx/dcclient.h>
#include <wx/timer.h>
#include <wx/bitmap.h>
#include <wx/stdpaths.h>
//*)

//(* C/C++ includes
//*)

//(* other includes
#include "../common/stdafx.h"
#include "ErrorLog.h"
//*)

//(* defines
//*)

//(* constants
//*)

class CSplashScreen: public wxDialog
{
public:
	CSplashScreen(wxWindow* pParent, const int Time, wxString FileName, wxString* Version = NULL, wxString* Revision = NULL);
	virtual ~CSplashScreen();
	void Start();
	bool IsFinished()   { return !m_pTimer->IsRunning(); }
	void Stop();
	void SetStatusMsg(wxString text);

private:
    // event handlers
    void OnPaint(wxPaintEvent& paint_event);

    // private data
    wxTimer*   m_pTimer;
    int        m_Time;
    wxString   m_FileName;
    wxBitmap   m_Bitmap;
    wxString   m_StatusMsg;
    wxString   m_Version;
    wxString   m_Revision;

	DECLARE_EVENT_TABLE()
};

#endif
